package cn.wolfcode.crm.service.impl;

import cn.wolfcode.crm.mapper.CustomerReportMapper;
import cn.wolfcode.crm.qo.CustomerReportQueryObject;
import cn.wolfcode.crm.service.ICustomerReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class CustomerReportService implements ICustomerReportService {
    @Autowired
    private CustomerReportMapper customerReportMapper;

    @Override
    public List<Map<String, Object>> selectCustomerNumberGroupByType(CustomerReportQueryObject qo) {
        return customerReportMapper.selectCustomerNumberGroupByType(qo);
    }

    @Override
    public List<Map<String, Object>> selectCustomerNumberGroupByTypeForPie(CustomerReportQueryObject qo) {
        return customerReportMapper.selectCustomerNumberGroupByTypeForPie(qo);
    }
}
